package com.cloudkinto.service.event.order;

import com.cloudkinto.entity.OrderOutboundDo;
import lombok.Data;

import java.util.Collection;

/**
 * @author long
 * @Description 出库单添加扣费记录事件
 * @Date 2025/2/10 13:03
 */
@Data
public class OutboundAddCostEvent {

    private OrderOutboundDo outboundDo;

    private Collection<OrderOutboundDo> outboundDoList;

    /**
     * 0实扣 1预扣
     */
    private Integer status;

    public OutboundAddCostEvent(OrderOutboundDo outboundDo, int status) {
        this.outboundDo = outboundDo;
        this.status = status;
    }

    public OutboundAddCostEvent(Collection<OrderOutboundDo> outboundDoList, int status) {
        this.outboundDoList = outboundDoList;
        this.status = status;
    }
}
